Returns the number of characters in a string, or the number of bytes that are required to store a variable.
文字列中の文字数ないしは、変数の格納に必要となるバイト数を返します。
Len (Text As String)
Len (Text As String)
Long
ロング整数
Text: Any string expression or a variable of another type.
Text:文字列表式または、その他のタイプの変数。
Sub ExampleLen
Sub ExampleLen
Dim sText as String
Dim sText as String
sText = "Las Vegas"
sText = "Las Vegas"
MsgBox Len(sText) REM Returns 9
MsgBox Len(sText) REM 戻り値は 9
End Sub
End Sub